{extend name="./content"}

{block name="content"}
<form onsubmit="return false;" action="__SELF__" data-auto="true" method="post" class='form-horizontal' style='padding-top:20px'>

    <div class="form-group">
        <label class="col-sm-2 control-label">主站域名</label>
        <div class='col-sm-8'>
            <input type="text" name="site_domain" required="required" title="请输入主站域名" placeholder="请输入主站域名" value="{:sysconf('site_domain')}" class="layui-input">
            <p class="help-block">主站域名</p>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">全站资源域名</label>
        <div class='col-sm-8'>
            <input type="text" name="site_domain_res" required="required" title="请输入全站资源域名" placeholder="请输入全站资源域名" value="{:sysconf('site_domain_res')}" class="layui-input">
            <p class="help-block">全站资源域名</p>
        </div>
    </div>

    <!--div class="form-group">
        <label class="col-sm-2 control-label">顶级域名</label>
        <div class='col-sm-8'>
            <input type="text" name="site_domain_res" required="required" title="请输入顶级域名" placeholder="请输入顶级域名" value="{:sysconf('site_domain_res')}" class="layui-input">
            <p class="help-block">顶级域名列如：thinkct.net</p>
        </div>
    </div-->

    <div class="form-group">
        <label class="col-sm-2 control-label">店铺域名</label>
        <div class='col-sm-8'>
            <input type="text" name="site_shop_domain" required="required" title="请输入店铺推广域名" placeholder="请输入店铺推广域名" value="{:sysconf('site_shop_domain')}" class="layui-input">
            <p class="help-block">用于店铺推广使用的域名，防止主域名报毒</p>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">禁用子域名</label>
        <div class='col-sm-8'>
            <textarea name="disabled_domains" id="" cols="30" rows="5" class="layui-textarea">{:sysconf('disabled_domains')}</textarea>
            <p class="help-block">禁用子域名，使用“|”分隔</p>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">短网址功能</label>
        <div class='col-sm-8'>
            <select name="site_domain_short" class="layui-input" required>
                <option value="" {if sysconf('site_domain_short')==''}selected{/if}>不启用</option>
                <option value="Baidu" {if sysconf('site_domain_short')=='Baidu'}selected{/if}>百度短网址</option>
                <option value="Sina" {if sysconf('site_domain_short')=='Sina'}selected{/if}>新浪短网址</option>
                <option value="U6" {if sysconf('site_domain_short')=='U6' }selected{/if}>U6短网址 </option>
            </select>
        </div>
    </div>

    <div class="hr-line-dashed"></div>

    <div class="subto">
        <div class="layui-form-item text-center">
            <button class="layui-btn" type="submit">保存配置</button>
        </div>
    </div>

</form>
<script>
    layui.use('form', function(){
        var form = layui.form; //只有执行了这一步，部分表单元素才会自动修饰成功
        form.render();
    });
</script>
{/block}
